package com.coding.service;


import com.coding.base.pojo.BaseModel;


public interface UserService {
    //登录
    void userLogin(String account, String pwd, BaseModel model) throws Exception;

    //
    void selectById(int user_id, BaseModel model) throws Exception;

    //验证码登录
    void userloginwithcheck(String account, BaseModel model) throws Exception;

    //更改用户密码
    void changeuserpwd(String pwd, String account, BaseModel model) throws Exception;

    int getUserLoginFlag(String login_flag) throws Exception;

    //注册
    void userRegister(String account, String pwd, BaseModel model) throws Exception;

    //通过account获得用户
    void getuserbyacount(String account, BaseModel model) throws Exception;

    //试验
    void usergetpassword(String account, BaseModel model) throws Exception;

    //更改用户名
    void changeusername(String username, String account, BaseModel model) throws Exception;

    //获得用户名
    void getUsername(String account, BaseModel model) throws Exception;

    //获得用户头像
    void getUserimage(String account, BaseModel model) throws Exception;

    //更改用户头像
    void changeUserimage(int image_id, String account, BaseModel baseModel) throws Exception;

    //增加用户积分
    void addUserPoints(int user_id, int points, BaseModel baseModel) throws Exception;

    //获得用户积分排名
    void getOrderPoints(BaseModel baseModel) throws Exception;
    //获得用户列表
    void getUserList(BaseModel baseModel)throws Exception;
}
